//
//  SEGAlerViewHUD.h
//  TencentAD
//
//  Created by 刘山 on 2017/8/23.
//  Copyright © 2017年 Sam. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, SEGAlerViewHUDType) {
    SEGAlerViewHUDType_EggWin = 0, /*砸金蛋获取红包*/
    SEGAlerViewHUDType_EggWinRecord = 1, /*砸金蛋获取红包-中奖记录*/
    SEGAlerViewHUDType_EggLose = 2, /*砸金蛋没有获取红包*/
    
    SEGAlerViewHUDType_TurnTableWin = 3, /*大转盘获取红包*/
    SEGAlerViewHUDType_TurnTableWinRecord = 4, /*大转盘获取红包-中奖记录*/
    SEGAlerViewHUDType_TurnTableLose = 5, /*大转盘没有获取红包*/
    
    SEGAlerViewHUDType_NarmalWin = 6, /*普通获取红包*/
    SEGAlerViewHUDType_NarmalLose = 7 /*普通没有获取红包*/
};

typedef NS_ENUM(NSUInteger, SEGAlerViewHUDResult) {
    SEGAlerViewHUDResult_Know = 0, /*我知道了*/
    SEGAlerViewHUDResult_ShowPrize = 1, /*查看奖励*/
    SEGAlerViewHUDResult_TryAgin = 2, /*再来一次*/
    SEGAlerViewHUDResult_WalletHistory = 3, /*中奖记录*/
    SEGAlerViewHUDResult_LastTime = 4, /*您的抽奖机会已用完！*/
    SEGAlerViewHUDResult_Close = 5 /*关闭*/
};


typedef void(^AlerViewHUDBlock) (SEGAlerViewHUDResult type);

@interface SEGAlerViewHUD : UIView
/**
 * 展示不同类型的弹窗
 * @author Sam
 * @param type  弹窗类型的枚举
 * @param prizeName  奖品名称
 * @param picUrl  奖品图片
 * @param trytime  剩余次数
 * @param notLotteryMsg 未中奖提示语
 * @param block  用户触发的回调
 */
+(void)show:(SEGAlerViewHUDType)type prizeName:(NSString*)prizeName picUrl:(NSString*)picUrl trytime:(NSInteger)trytime notLotteryMsg:(NSString *)notLotteryMsg finished:(AlerViewHUDBlock)block;
@end
